<template>
  <div class="container-box">
    <!-- <div class="container-nav-box">
            <el-menu :default-active="activeIndex" class="el-menu-demo" mode="vertical" @select="handleSelect" background-color="#fff" text-color="#41465C" active-text-color="#383E54">
                <el-menu-item :class="{'thisNav':thisNav=='ticketList'}" index="ticketList">门票</el-menu-item>
                <el-menu-item :class="{'thisNav':thisNav=='forumManagement'}" index="forumManagement">论坛管理</el-menu-item>
                <el-menu-item :class="{'thisNav':thisNav=='fieldManagement'}" index="fieldManagement">字段管理</el-menu-item>
                <el-menu-item :class="{'thisNav':thisNav=='shareList'}" index="shareList">分享列表</el-menu-item>
            </el-menu>
        </div> -->
    <div class="container">
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      // activeIndex: "1",
      // thisNav: "ticketList" //当前导航
    };
  },
  methods: {
    // handleSelect(key, keyPath) {
    //   this.$router.push({
    //     name: key
    //   });
    //   this.thisNav = key;
    // },
    // // 打开新页面
    // openPage(router) {
    //   this.$router.push({
    //     name: router
    //   });
    //   // sessionStorage.setItem("thisRoutName", this.$route.name);
    // }
  },
  created() {
    // if (sessionStorage.getItem("thisRoutName")) {
    //   this.$router.push({
    //     name: sessionStorage.getItem("thisRoutName")
    //   });
    // } else {
    //   this.$router.push({
    //     name: "ticketList"
    //   });
    // }
  }
};
</script>


<style scoped>
.container-box {
  width: 100%;
  height: auto;
  position: relative;
  padding-top: 10px;
}
.container-nav-box {
  position: fixed;
  left: 0px;
  top: 70px;
  width: 130px;
  background: #fff;
  height: 100%;
}
.container-nav {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #000;
  display: inline-block;
  cursor: pointer;
}
.thisNav {
  background-color: rgb(204, 204, 204) !important;
  color: #383e54;
}
.container-nav:hover {
  background-color: #409eff;
  color: #fff;
}
.container {
  width: 100%;
  height: auto;
  padding-left: 0px;
  padding-right: 0px;
}
</style>


